
function flep_request(page, post, headers, dest){
    E(dest).innerHTML = "<div style='text-align:center;'><img src='request.php?res=loading.gif'><br><i>Cargando...</i></div>";
    var xmlhttp = xml_http_request(post, 'request.php?page='+ page);
    if(xmlhttp.status === 200){
        E(dest).innerHTML = xmlhttp.responseText;
        var header_files = E("header_files").childNodes;
	if(header_files === null) return true;
        if(headers){
            var headID = document.getElementsByTagName("head")[0];
            while(0 < header_files.length){
                if(header_files[0].nodeName === "LINK"){
                    AC(headID, header_files[0]);
                }else if(header_files[0].nodeName === "SCRIPT"){
                    var newScript = CE('script');
                    newScript.type = 'text/javascript';
                    newScript.src = header_files[0].src;
                    AC(headID, newScript);
                    RC(E("header_files"), header_files[0]);
                }
            }
        }
        RC(E(dest), E("header_files"));
        return true;
    } else {
      E(dest).innerHTML = '<p class="error">'+xmlhttp.responseText+'</p>';
    }
    return false;
}
